package org.jeecg.modules.engine.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.engine.entity.Frame;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.engine.entity.vo.FramePhoneVo;
import org.jeecg.modules.engine.entity.vo.FrameProcPhoneVo;
import org.jeecg.modules.engine.entity.vo.FrameTotalVo;
import org.jeecg.modules.engine.entity.vo.FrameVo;

import java.util.List;

/**
 * @Description: 构件表
 * @Author: jeecg-boot
 * @Date:   2020-07-20
 * @Version: V1.0
 */
public interface IFrameService extends IService<Frame> {

	List<Frame> selectByMainId(String mainId);

	IPage<FrameVo> selectFramePage(Page<FrameVo> page, FrameVo frameVo);
	IPage<Frame> framePage(Page<Frame> page, Frame frame);//电脑端

	FrameTotalVo frameTotal(Frame frame);

	IPage<FramePhoneVo> inPhoneList(Page<FramePhoneVo> page, FramePhoneVo framePhoneVo);
	IPage<FrameProcPhoneVo> inPhoneFrameList(Page<FrameProcPhoneVo> page, FrameProcPhoneVo frameProcPhoneVo);
	Result<?> openFrame(Frame frame);

	FrameVo findById(String id);

	Boolean addTask(Frame frame);

	Boolean deleteFrame(String id);
	Result deleteBatchFrame(String ids);
}
